<div xmlns:th="http://www.thymeleaf.org">
    <div th:if="${pageInfo != null && pageInfo.list.size() != 0}">
        <table class="table table-striped mt-3">
            <thead>
            <tr th:if="${show!='incl'}">
                <th>职位编码</th>
                <th>职位名称</th>
                <th>职位分类</th>
                <th>所属部门</th>
                <th >是否启用</th>
                <th>操作</th>
            </tr>
            <tr th:if="${show=='incl'}">
                <th>操作</th>
                <th>职位编码</th>
                <th>职位名称</th>
                <th>职位分类</th>
                <th>所属部门</th>
            </tr>
            </thead>
            <tbody>

            <tr th:if="${show!='incl'}" th:each="post:${pageInfo.list}" th:attr="id=${post.id}">
                <td th:text="${post.code}"></td>
                <td th:text="${post.name}"></td>
                <td th:text="${post.valueName}"></td>
                <td th:text="${post.fullName}"></td>
                <td >
                    <input style="position:static;" type="checkbox" name="isStart" th:if="${post.is_Start} eq 1" value="1" checked/>
                    <input style="position:static;" type="checkbox" name="isStart" th:if="${post.is_Start} eq 0" value="0"/>
                </td>
                <td>
                    <a href="javascript:;" th:onclick="'javascript:del('+${post.id}+');'" class="delete">删除</a>
                    <a th:href="@{'/sys/post/update?id='+${post.id}}">修改</a>
                </td>
            </tr>

            <tr th:if="${show=='incl'}" th:each="post:${pageInfo.list}">
                <td>
                <label class="form-radio-label" >
                    <input th:value="${post.id}" class="form-radio-input id" type="radio" name="id">
                    <span class="form-radio-sign"></span>
                </label>
                    <input th:value="${post.oId}" type="hidden" >
                </td>
                <td th:text="${post.code}"></td>
                <td th:text="${post.name}"></td>
                <td th:text="${post.valueName}"></td>
                <td th:text="${post.fullName}"></td>
            </tr>
            </tbody>
        </table>
        <div th:replace="common/comm :: #page"></div>
    </div>
    <div th:if="${pageInfo == null || pageInfo.list.size() == 0}">
        暂时没有记录.....
    </div>
</div>